package com.zpark.it.clients;

import com.zpark.it.param.PageParam;
import com.zpark.it.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Title: OrderClient
 * @Author Charles
 * @Package com.zpark.it.clients
 * @Date 2023/7/29 10:52
 */
@FeignClient("order-service")
public interface OrderClient {

    @PostMapping("/order/remove/check")
    R check(@RequestBody Integer productId);

    @PostMapping("/order/admin/list")
    R list(@RequestBody PageParam pageParam);
}

